﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Vlc.DotNet.Core.Medias;
using Vlc.DotNet.Forms;

namespace Labano.Application
{
    public partial class DownloadForm : UserControl
    {
        public event EventHandler ClosePanelForm;

        public DownloadForm()
        {
            InitializeComponent();
        }
        public void PlayUrl(string url)
        {
            var media = new LocationMedia(url);
            this.vlcControl.Media = media;
            this.vlcControl.Play();
            
        }

      

        private void ColosBtn_Click(object sender, EventArgs e)
        {
            this.vlcControl.Pause();
            ClosePanelForm(sender, e);
        }
    }
}
